﻿namespace Anley.DomainDrivenDesign.Contract.Domain;

/// <summary>
/// 聚合根类
/// </summary>
/// <typeparam name="TKey"></typeparam>
public abstract class AggregateRoot<TKey>
    : UpdatableEntity<TKey>, IAggregateRoot<TKey>
    where TKey : struct
{
}

/// <summary>
/// 聚合根类
/// </summary>
public abstract class AggregateRoot
    : AggregateRoot<int>, IAggregateRoot
{
}